package cn.xiongxf.service.impl;

import cn.xiongxf.domain.Login;
import cn.xiongxf.mapper.LoginMapper;
import cn.xiongxf.service.ILoginService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 登录表 服务实现类
 * </p>
 *
 * @author xiongxiaofu
 * @since 2022-08-12
 */
@Service
public class LoginServiceImpl extends ServiceImpl<LoginMapper, Login> implements ILoginService {

    @Override
    public Login selectByUsername(String username) {
        return selectOne(new EntityWrapper<Login>().eq("username", username));
    }
}
